<?php
namespace haibao\cms\model\data\behavior;

class UserPageView extends \haibao\cms\model\data\Base{
	public $ViewId;
	public $UnRegId;
	public $UserId;
	public $Domain;
	public $Path;
	public $FullPath;
	public $IpAddress;
	public $UserAgent = '';
	public $CreateTime;
	public $Referrer;
	public $EventCode;
	public $EventValue;
	public $FullPathHash;
	public $SiteId;
		
	public function setTableName($tableName){
		parent::setTableName($tableName);
	}
	
	public function __construct(){
		parent::__construct();
	
		$this->stringField('ViewId', 'ViewId',true);
		$this->stringField('UnRegId', 'UnRegId',true);
		$this->stringField('UserId', 'UserId',false);
		$this->stringField('Domain','Domain',true);
		$this->stringField('Path', 'Path',true);
		$this->stringField('FullPath', 'FullPath',true);
		$this->stringField('IpAddress', 'IpAddress',true);
		$this->stringField('UserAgent','UserAgent',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->stringField('Referrer', 'Referrer',true);
		$this->stringField('EventCode', 'EventCode',true);
		$this->stringField('EventValue', 'EventValue',true);
		$this->stringField('FullPathHash','FullPathHash',true);
		$this->intField('SiteId', 'SiteId',false);
		
		$this->setTableName('UserPageView');
	}
}

	